import React, { lazy } from 'react'
import { RouterArr } from '../index'
import LayoutIndex from '@/layouts/index'

const Roles = lazy(() => import('@/pages/Roles/index'))

const rolesRouter: Array<RouterArr> = [
  {
    element: <LayoutIndex />,
    children: [
      {
        path: '/roles',
        element: <Roles />,
        meta: {
          requiresAuth: true,
          title: '角色列表',
          key: 'roles'
        }
      }
    ]
  }
]

export default rolesRouter
